home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / K_O / MERC106P.ZIP / TOOLS / STRIP1.BAT
DOS Batch File  |  1996-11-14  |  1KB  |  31 lines

  1. @if not #%1 == # goto ok
  2. @echo Usage: strip1 worlddir
  3. @echo Must be run from your Mercenaries' TOOLS subdirectory.
  4. @echo WORLDDIR must be a subdirectory inside the TOOLS subdirectory.
  5. @goto end
  6. :ok
  7. @if exist stripwld.exe goto ok2
  8. @echo Error: stripwld.exe not found!  You must run this from \MERCS\TOOLS.
  9. @goto end
  10. :ok2
  11. @if exist ..\mw2.prj goto ok3
  12. @echo Error: ..\mw2.prj not found!  You must run this from \MERCS\TOOLS.
  13. @goto end
  14. :ok3
  15. @if exist en00star.bwd goto ok4
  16. @echo Error: en00star.bwd not found!  You need to copy *.bwd from the CD's \TOOLS folder!
  17. @goto end
  18. :ok4
  19. @rem The first line that really does anything: figure out what to WASM.
  20. .\stripwld -t %1 .. > %1.bat
  21. @if errorlevel 1 echo Error running STRIPWLD on %1!
  22. @if errorlevel 1 goto end
  23. @rem The second line that really does anything: actually run WASM and make the .mwm.
  24. call %1
  25. @if errorlevel 1 echo Error running STRIPWLD or WASM on %1!
  26. @if errorlevel 1 goto end
  27. @rem The third line that really does anything: move the .mwm to where it can be run.
  28. move *.mwm ..\missions
  29. @if errorlevel 1 echo Error moving *.mwm to ..\missions!
  30. :end
  31.